package main.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;

@Component
@Entity(name="vote_option")
public class VoteOptionVO extends BaseVO {

	/**
	 * @author Administrator
	 */
	private static final long serialVersionUID = -5907812571347443714L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "option_ID", unique = true, nullable = true)
	private Integer optionID;
	@NotEmpty
	@Column(name="option_name", unique=true, nullable = true, length=64)
	private String optionName;
	@Column(name="vote_ID", nullable = true)
	private Integer voteID;
	@Column(name="ticket_num", nullable=true)
	private Integer ticketNum;
	
	public Integer getOptionID() {
		return optionID;
	}
	public void setOptionID(Integer optionID) {
		this.optionID = optionID;
	}
	public String getOptionName() {
		return optionName;
	}
	public void setOptionName(String optionName) {
		this.optionName = optionName;
	}
	public Integer getVoteID() {
		return voteID;
	}
	public void setVoteID(Integer voteID) {
		this.voteID = voteID;
	}
	public static Long getSerialversionuid() {
		return serialVersionUID;
	}
	public Integer getTicketNum() {
		return ticketNum;
	}
	public void setTicketNum(Integer ticketNum) {
		this.ticketNum = ticketNum;
	}	
	
}
